//
//  AddFingerprintViewController.m
//  RONGAO
//
//  Created by Kendama on 2018/2/26.
//  Copyright © 2018年 wei wang. All rights reserved.
//

#import "AddFingerprintViewController.h"

@interface AddFingerprintViewController ()

@property(nonatomic,strong)UIImageView *voiceImageView;
@property(nonatomic,strong)UILabel *tipsLabel;


@end

@implementation AddFingerprintViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


#pragma mark - --------------------------懒加载--------------------------
- (UIImageView *)voiceImageView
{
    if(!_voiceImageView)
    {
        UIView *superView = self.view;
        _voiceImageView = [[UIImageView alloc]init];
        [superView addSubview:_voiceImageView];
        _voiceImageView.image = [UIImage imageNamed:@"bg_tisi"];
    }
    return _voiceImageView;
}
- (UILabel *)tipsLabel
{
    if(!_tipsLabel)
    {
        UIView *superView = self.view;
        _tipsLabel = [[UILabel alloc]init];
        [superView addSubview:_tipsLabel];
        [_tipsLabel setFont:[UIFont systemFontOfSize:14]];
//        [_tipsLabel setTextColor:[UIColor darkGrayColor]];
        _tipsLabel.text = @"请按照门锁提示音进行操作";
    }
    return _tipsLabel;
}

#pragma mark - --------------------------约束--------------------------
- (void)masLayoutSubview
{
    __weak UIView *superView = self.view;
    
    [self.voiceImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(superView.mas_top).with.offset(pxScaleHeight(118));
        make.centerX.mas_equalTo(superView.mas_centerX);
    }];
    
    [self.tipsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(superView.mas_centerX);
        make.top.mas_equalTo(_voiceImageView.mas_bottom).with.offset(pxScaleHeight(72));
    }];
}

#pragma mark - --------------------------导航栏--------------------------
- (void)setNavigationStyle
{
    [self setLeftButtonImage:[UIImage imageNamed:@"icon_back_nor"]];
    [self setNavigationTitle:@"增加指纹" titleColor:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
